input_text = " This это Текст написаный с консоли"
input_text +=" "
count_words = 0
count_def = 0
i=0
word_now = " "
while i < len ( input_text):
    if input_text[i] == "-":
        count_def+=1
        if input_text[i] == " ":
            count_def += 1
            print(word_now)
            word_now = " "
            else:
                word_now += input_text[i]
                i += 1
                print(word_now)
